package com.sea.supply.service.impl;


import com.sea.supply.entity.QualityProduce;
import com.sea.supply.entity.QualityProduceType;
import com.sea.supply.mapper.QualityProduceMapper;
import com.sea.supply.mapper.QualityProduceTypeMapper;
import com.sea.supply.service.QualityProduceService;
import com.sea.supply.service.QualityProduceTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 陈鸿飞
 */
@Service
public class QualityProduceTypeServiceImpl implements QualityProduceTypeService {

    @Autowired
    private QualityProduceTypeMapper qualityProduceTypeMapper;

    @Override
    public int save(QualityProduceType qualityProduceType) {
        return qualityProduceTypeMapper.insert(qualityProduceType);
    }

    @Override
    public List<QualityProduceType> findByCnd(QualityProduceType qualityProduceType) {
        return qualityProduceTypeMapper.findByCnd(qualityProduceType);
    }

    @Override
    public Integer delete(Integer id) {
        return qualityProduceTypeMapper.delete(id);
    }
}
